#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
char* my_strncat(char* str1, char* str2,int n)
{
	char* ret = str1;
	while (*str1)
	{
		str1++;
	}
	while (n--)
	{
		if (!(*str1++ = *str2++))
			return ret;
	}
	*str1 = '\0';
	return ret;
}
int main()
{
	char arr1[100] = "Hello world";
	char arr2[100] = " Thank you";
	my_strncat(arr1, arr2,11);
	printf("%s", arr1);
	return 0;
}